package be.kdg.bombermanunlimited.client.gui;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class BombermanFrame extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4422695842822387830L;
	
	public BombermanFrame(String title) {
		super(title);
	}

	public void centerOnScreen() {
		Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		Point p = new Point((screen.width - getWidth()) / 2,
				(screen.height - getHeight()) / 2);
		setLocation(p);
	}
}
